package com.heima.apis.wemedia;

import com.heima.apis.wemedia.fallback.IWeMediaClientFallback;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia",fallback = IWeMediaClientFallback.class)
public interface IWeMediaClient {
    @PostMapping("/api/v1/wemedia/saveUser")
    ResponseResult saveWeMediaUser(@RequestBody ApUser apUser);
    @GetMapping("/api/v1/channel/list")
    ResponseResult getChannel();
}
